<template>
  <div class="box">
    <div class="nav">
      <head-page
        :title="`${this.$route.query.index}.${this.$route.query.Name}`"
        id="backstyle"
      >
      </head-page>
    </div>
    <div class="tu">
      <van-swipe class="my-swipe" :autoplay="7000">
        <van-swipe-item v-for="(item, index) in url" :key="index">
          <img :src="imgurl + item" alt="" />
        </van-swipe-item>
      </van-swipe>
    </div>
    <div class="wen">
      <div class="num">
        <div class="yuan"></div>
        <p>编号:{{ list.taluserNum }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>姓名:{{ list.taluserName }}</p>
      </div>

      <div class="num">
        <div class="yuan"></div>
        <p>籍贯:{{ list.taluserPlace }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>出生:{{list.taluserAge}}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>身高:{{ list.taluserHeight }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>学历:{{ list.taluserStudy }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>专业:{{ list.taluserMajor }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>毕业或就读院校:{{ list.taluserEdu }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>婚姻状况:{{ list.taluserMarriage }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>工作阅历:{{ list.taluserJob }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>荣誉奖项:{{ list.taluserAddress }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>特长爱好:{{ list.taluserPoint }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>岗位要求:{{ list.taluserNeed }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>薪酌要求:{{ list.taluserMoney }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>创业要求:{{ list.taluserNation }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>目标城市:{{ list.taluserProvincial }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
       <p>赶任时间:{{ list.taluserWeight }}</p> 
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>未来规划:{{ list.taluserHope }}</p>
      </div>
      <div class="num">
        <div class="yuan"></div>
        <p>备注:{{ list.taluserIntroduce }}</p>
      </div>




     
    </div>
  </div>
</template>

<script>
import { talusId } from "@/api/index";
export default {
  data() {
    return {
      num: this.$store.state.provin,
      list: [],
      url: [],
    };
  },
  mounted() {
    talusId(this.$route.query.userId).then((res) => {
      if (res.data.code == 200) {
        // console.log(res.data.data);
        if (res.data.data.taluserLifeUrl)
          this.url = res.data.data.taluserLifeUrl.split(",");
        // console.log(this.url);
        this.list = res.data.data;
      }
    });
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    getImgUrl(img) {
      return this.montageImgUrl(img);
    },
  },
};
</script>

<style scoped>
.box {
  width: 100%;
  height: 100%;
  background-color: #f6f4fb;
}
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99;
}
.tu {
  width: 100%;
  padding-top: 0.32rem;
}
.tu img {
  width: 100%;
  height: 2.5rem;
}
/* 文字区域 */
.wen {
  width: 100%;
  margin-top: 0.02rem;
  background-color: white;
  border-radius: 0.1rem;
}
.num {
  display: flex;
}
p {
  height: 0.3rem;
  line-height: 0.3rem;
  margin-top: 0.04rem;
}
.yuan {
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 50%;
  margin: 0.1rem;
  background-color: black;
}
</style>